.class public Lcom/estrongs/android/pop/app/messagebox/info/a;
.super Les/ll;
.source "InfoMessageBox.java"


# instance fields
.field public c:Les/zr;

.field public d:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/yg;",
            ">;"
        }
    .end annotation
.end field

.field public e:Ljava/lang/String;

.field public f:Ljava/lang/String;

.field public g:Ljava/lang/String;

.field public h:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/ll;-><init>()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 19
    invoke-super {p0}, Les/ll;->a()V

    const/4 v0, 0x0

    .line 20
    iput-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/info/a;->c:Les/zr;

    .line 21
    iput-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/info/a;->d:Ljava/util/List;

    return-void
.end method

.method public a(Lorg/json/JSONObject;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 1
    invoke-super {p0, p1}, Les/ll;->a(Lorg/json/JSONObject;)V

    const-string v0, "scenes"

    .line 2
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 3
    new-instance v1, Les/zr;

    invoke-direct {v1}, Les/zr;-><init>()V

    iput-object v1, p0, Lcom/estrongs/android/pop/app/messagebox/info/a;->c:Les/zr;

    .line 4
    new-instance v2, Lcom/estrongs/android/pop/app/messagebox/info/b;

    invoke-direct {v2}, Lcom/estrongs/android/pop/app/messagebox/info/b;-><init>()V

    new-instance v3, Lcom/estrongs/android/pop/app/messagebox/info/b;

    invoke-direct {v3}, Lcom/estrongs/android/pop/app/messagebox/info/b;-><init>()V

    invoke-virtual {v1, v2, v3}, Les/zr;->a(Les/as;Les/as;)V

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/pop/app/messagebox/info/a;->c:Les/zr;

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    invoke-virtual {v1, v0}, Les/zr;->a(Lorg/json/JSONObject;)V

    :cond_0
    const-string v0, "start_time"

    .line 6
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/info/a;->e:Ljava/lang/String;

    const-string v0, "end_time"

    .line 7
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/info/a;->f:Ljava/lang/String;

    const-string v0, "latestId"

    .line 8
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/info/a;->g:Ljava/lang/String;

    const-string v0, "latestTitle"

    .line 9
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/info/a;->h:Ljava/lang/String;

    const-string v0, "cards"

    .line 10
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 11
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/estrongs/android/pop/app/messagebox/info/a;->d:Ljava/util/List;

    .line 12
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object p1

    const/4 v0, 0x0

    .line 13
    :goto_0
    invoke-virtual {p1}, Lorg/json/JSONArray;->length()I

    move-result v1

    if-ge v0, v1, :cond_2

    .line 14
    invoke-virtual {p1, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v1

    const-string v2, "type"

    .line 15
    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 16
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_1

    const-string v3, "message_box_list"

    .line 17
    invoke-static {v3, v2, v1}, Lcom/estrongs/android/biz/cards/cardfactory/e;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;)Les/yg;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 18
    iget-object v2, p0, Lcom/estrongs/android/pop/app/messagebox/info/a;->d:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    return-void
.end method

.method public b()Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/info/a;->d:Ljava/util/List;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/info/a;->g:Ljava/lang/String;

    .line 3
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/info/a;->h:Ljava/lang/String;

    .line 4
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/info/a;->g:Ljava/lang/String;

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/app/messagebox/g;->a()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method
